import { ElMessage } from "element-plus";

export function toast(message,zhuangtai){
    console.log(123);
    if (zhuangtai === 'error') {
        ElMessage.error(message);
        return
    }

    ElMessage({
        message,
        type: zhuangtai || 'success',
      })
}